<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>xuanzeqi</title>
<!-- id选择器 -->
<style type="text/css"> 
#test {background-color:red;border:1px blue solid;}
</style>
<!-- 类选择器  见class.html -->
<!-- 标签选择器   -->
<div style="background-color:red;border:1px blue solid;"></div>
<p>ddddddddddddd</p>
<!-- 群组选择器   -->
<style type="text/css">
	div,a,p,span {border:1px blue solid;} 
</style>
<div class="box">
	<a href="">dddddddddd</a>
	<p>232323232ssddddd
	<span>4545454555566</span>
	<a href="">999--000</a></p>
	</div>
	<div class="box">
		8787878
	</div>
	<!-- 伪选择器   -->
	<style type="text/css">
	a:visited {background-color: #00FF00;}
	a:hover {background-color: red;}
	</style>
	<!-- 通用选择器   -->
	<style type="text/css">
	*{
		margin: 0px;
		padding: 0px;
		}
		.box{
			width: 300px;
			height: 300px;
			background-color: pink;
			border: 5px solid blue;
			/* border: 10px solid yellow; */
			padding: 10px;
			margin: 20px;
			overflow: scroll;
			display: inline-block;
		}
		.box1{
			width: 300px;
			height: 300px;
			background-color: green;
			border: 5px solid red;
			padding: 10px;
			margin: 20px;
		}
		</style>
	<!-- 后代选择器 -->	
	<style type="text/css">
.text p span{
	width: 300px;
			height: 300px;
			background-color: green;
}
</style>
<div class="text">
	<p>nininini
	<span>wowowowowo</span>
	</p>
</div>
</head>
<body>
	<div class="box">dddddddddd</div>
	<div class="box1">ccccccccccccccccccccccccccccccccc</div>
</head>
<body>
<div id="test">测试代码</div>
<!-- 类选择器 -->
<!-- 标签选择器   -->
<!-- 群组选择器   -->
</body>
</html>